package com.onpositive.properties.editor;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import com.onpositive.properties.editor.view.PropertiesListView;

public class MainPerspective implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		
		layout.addView( PropertiesListView.ID, IPageLayout.TOP, 1.0f,  IPageLayout.ID_EDITOR_AREA);
//		IFolderLayout createFolder = layout.createFolder("l0",
//				IPageLayout.LEFT, (float) 0.18, IPageLayout.ID_EDITOR_AREA);
//		createFolder.addView("com.onpositive.dataminer.rcp.providers");
//		createFolder.addView("com.onpositive.dataminer.rcp.viewObjects");
//		
//		//com.onpositive.dataminer.rcp.objectRawText
//		createFolder = layout.createFolder("objDet",
//				IPageLayout.BOTTOM, (float) 0.5, IPageLayout.ID_EDITOR_AREA);
//		createFolder.addView("com.onpositive.dataminer.rcp.objectDetails");
//		createFolder.addView("com.onpositive.dataminer.rcp.objectSections");
//		createFolder.addView("com.onpositive.dataminer.rcp.objectRawText");
//		createFolder.addView("com.onpositive.dataminer.rcp.parserInspectionView");
//		layout.addView("com.onpositive.dataminer.rcp.objectImages",IPageLayout.BOTTOM,0.3f,"objDet");
//		layout.setEditorAreaVisible(false);
//		layout.getViewLayout("com.onpositive.dataminer.rcp.providers")
//		.setCloseable(false);
//		layout.getViewLayout("com.onpositive.dataminer.rcp.objectDetails")
//				.setCloseable(false);
//		layout.getViewLayout("com.onpositive.dataminer.rcp.objectImages")
//		.setCloseable(false);
//		//com.onpositive.dataminer.rcp.providers
	}

}
